package com.apidoc.entity;

import java.util.ArrayList;
import java.util.List;

public class ApidocActionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApidocActionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andModuleIdIsNull() {
            addCriterion("module_id is null");
            return (Criteria) this;
        }

        public Criteria andModuleIdIsNotNull() {
            addCriterion("module_id is not null");
            return (Criteria) this;
        }

        public Criteria andModuleIdEqualTo(Integer value) {
            addCriterion("module_id =", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdNotEqualTo(Integer value) {
            addCriterion("module_id <>", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdGreaterThan(Integer value) {
            addCriterion("module_id >", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("module_id >=", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdLessThan(Integer value) {
            addCriterion("module_id <", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdLessThanOrEqualTo(Integer value) {
            addCriterion("module_id <=", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdIn(List<Integer> values) {
            addCriterion("module_id in", values, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdNotIn(List<Integer> values) {
            addCriterion("module_id not in", values, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdBetween(Integer value1, Integer value2) {
            addCriterion("module_id between", value1, value2, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("module_id not between", value1, value2, "moduleId");
            return (Criteria) this;
        }

        public Criteria andOrderByIsNull() {
            addCriterion("order_by is null");
            return (Criteria) this;
        }

        public Criteria andOrderByIsNotNull() {
            addCriterion("order_by is not null");
            return (Criteria) this;
        }

        public Criteria andOrderByEqualTo(Integer value) {
            addCriterion("order_by =", value, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByNotEqualTo(Integer value) {
            addCriterion("order_by <>", value, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByGreaterThan(Integer value) {
            addCriterion("order_by >", value, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_by >=", value, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByLessThan(Integer value) {
            addCriterion("order_by <", value, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByLessThanOrEqualTo(Integer value) {
            addCriterion("order_by <=", value, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByIn(List<Integer> values) {
            addCriterion("order_by in", values, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByNotIn(List<Integer> values) {
            addCriterion("order_by not in", values, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByBetween(Integer value1, Integer value2) {
            addCriterion("order_by between", value1, value2, "orderBy");
            return (Criteria) this;
        }

        public Criteria andOrderByNotBetween(Integer value1, Integer value2) {
            addCriterion("order_by not between", value1, value2, "orderBy");
            return (Criteria) this;
        }

        public Criteria andMethodUuidIsNull() {
            addCriterion("method_uuid is null");
            return (Criteria) this;
        }

        public Criteria andMethodUuidIsNotNull() {
            addCriterion("method_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andMethodUuidEqualTo(String value) {
            addCriterion("method_uuid =", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidNotEqualTo(String value) {
            addCriterion("method_uuid <>", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidGreaterThan(String value) {
            addCriterion("method_uuid >", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidGreaterThanOrEqualTo(String value) {
            addCriterion("method_uuid >=", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidLessThan(String value) {
            addCriterion("method_uuid <", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidLessThanOrEqualTo(String value) {
            addCriterion("method_uuid <=", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidLike(String value) {
            addCriterion("method_uuid like", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidNotLike(String value) {
            addCriterion("method_uuid not like", value, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidIn(List<String> values) {
            addCriterion("method_uuid in", values, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidNotIn(List<String> values) {
            addCriterion("method_uuid not in", values, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidBetween(String value1, String value2) {
            addCriterion("method_uuid between", value1, value2, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andMethodUuidNotBetween(String value1, String value2) {
            addCriterion("method_uuid not between", value1, value2, "methodUuid");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionIsNull() {
            addCriterion("request_description is null");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionIsNotNull() {
            addCriterion("request_description is not null");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionEqualTo(String value) {
            addCriterion("request_description =", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionNotEqualTo(String value) {
            addCriterion("request_description <>", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionGreaterThan(String value) {
            addCriterion("request_description >", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("request_description >=", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionLessThan(String value) {
            addCriterion("request_description <", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionLessThanOrEqualTo(String value) {
            addCriterion("request_description <=", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionLike(String value) {
            addCriterion("request_description like", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionNotLike(String value) {
            addCriterion("request_description not like", value, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionIn(List<String> values) {
            addCriterion("request_description in", values, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionNotIn(List<String> values) {
            addCriterion("request_description not in", values, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionBetween(String value1, String value2) {
            addCriterion("request_description between", value1, value2, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andRequestDescriptionNotBetween(String value1, String value2) {
            addCriterion("request_description not between", value1, value2, "requestDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionIsNull() {
            addCriterion("response_description is null");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionIsNotNull() {
            addCriterion("response_description is not null");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionEqualTo(String value) {
            addCriterion("response_description =", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionNotEqualTo(String value) {
            addCriterion("response_description <>", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionGreaterThan(String value) {
            addCriterion("response_description >", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("response_description >=", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionLessThan(String value) {
            addCriterion("response_description <", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionLessThanOrEqualTo(String value) {
            addCriterion("response_description <=", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionLike(String value) {
            addCriterion("response_description like", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionNotLike(String value) {
            addCriterion("response_description not like", value, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionIn(List<String> values) {
            addCriterion("response_description in", values, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionNotIn(List<String> values) {
            addCriterion("response_description not in", values, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionBetween(String value1, String value2) {
            addCriterion("response_description between", value1, value2, "responseDescription");
            return (Criteria) this;
        }

        public Criteria andResponseDescriptionNotBetween(String value1, String value2) {
            addCriterion("response_description not between", value1, value2, "responseDescription");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}